package com.ot.flink.cdc.common;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 数据库操作类型
 *
 * @author: admin
 * @date: 2024/5/8
 * @since JDK1.8 version: 1.0.0
 */
@AllArgsConstructor
public enum OpEnum {

    READ("r", "read"),
    INSERT("c", "insert"),
    UPDATE("u", "update"),
    DELETE("d", "delete")
    ;
    private String op;

    private String jdbcOp;

    public String getOp() {
        return op;
    }

    public void setOp(String op) {
        this.op = op;
    }

    public String getJdbcOp() {
        return jdbcOp;
    }

    public void setJdbcOp(String jdbcOp) {
        this.jdbcOp = jdbcOp;
    }
}
